package cate.common.table.activity.converthero.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.converthero.row.ConvertConsumeRow;

import java.util.List;
import java.util.stream.Collectors;

public class ConvertConsumeSheet extends ESheet<ConvertConsumeRow> {
    @Override
    public String getSheetName() {
        return "消耗英雄库";
    }

    public List<ConvertConsumeRow> getRowsByGroup(int group) {
        return getList().stream().filter(row->row.group==group).collect(Collectors.toList());
    }
}
